export interface IRequestOptions {
  url: string;
  method: "GET" | "POST" | "PUT" | "DELETE"; // 字符串字面量类型
  data: Object; // Object 是对象类型，属性和值的类型都是任意的
}

export interface IResponseType<T> {
  code: number;
  message: string;
  success: boolean;
  data: T;
  error?: string;
}